package com.guigu.erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.erp.pojo.DesignModule;
import com.guigu.erp.pojo.ManufactureDesignProcedure;
import org.apache.ibatis.annotations.Select;

public interface ManufactureDesignProcedureMapper extends BaseMapper<ManufactureDesignProcedure> {
    /**
     * 查询ID最大的工序设计单信息
     * @return
     */
    @Select("SELECT * FROM M_DESIGN_PROCEDURE WHERE ID = (SELECT MAX(id) from M_DESIGN_PROCEDURE)")
    ManufactureDesignProcedure queryMaxModule();
}
